/**
 * 在线问答
 * 路由
 */
const express = require("express");
const router = express.Router();
const validateRequest = require("../middlewares/validationMiddleware"); // 验证器
// 检验器
const { list_validation, add_validation, update_validation, delete_validation } = require("../validators/onlineQna");
const { onlineQna_list, onlineQna_add, onlineQna_update, onlineQna_delete } = require("../controllers/onlineQna");

router.get("/onlineQnaList", list_validation, validateRequest, onlineQna_list); // 获取视频中心
router.post("/onlineQnaAdd", add_validation, validateRequest, onlineQna_add); // 编辑视频中心
router.put("/onlineQnaUpdate", update_validation, validateRequest, onlineQna_update); // 编辑视频中心
router.delete("/onlineQnaDetele", delete_validation, validateRequest, onlineQna_delete); // 删除视频中心

module.exports = router;
